package setup

// 启动
func Setup() {
	ConfigInit()

	LoggerInit()

	// Mechanical domain.
	errc := make(chan error)

	// Interrupt handler.
	ShutdownHandlerRegister(errc)

	ClientInit()

	ServiceInit()

	RestfulInit(errc)

	GqlgenInit(errc)

	GrpcInit(errc)

	<-errc
}
